<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=cn-gb">
		<link href="css/style.css" rel="stylesheet" type="text/css">
		  <s:head theme="xhtml"/>
  		  <sx:head parseContent="true"/>

		<title>添加供应商</title>

		<script type="text/javascript">
			function suppAction() {
				var d = document.forms[0];
				d.action = "addNewSupp";
				d.submit();
			}
		</script>
		<style type="text/css">
		.errorMessage {
			font-size: 12px;
			color: red;
		}
		</style>
	</head>

	<body>
		<center>
			<h2>
				添加 供应商
			</h2>
		</center>
		<center>
			<font color="red"> ${requestScope.addSuppName}</font>
			<s:form method="post">
				<table>
					<tr>
						<td>
							<s:select id="suppList" name="supp.suppId" label="供应商"
								  list="%{#request.allSupp}"
								  listKey="id" listValue="shortName" />
						</td>
					</tr>
					<tr>
						<td>
							<sx:datetimepicker label="入库日期" name="supp.buyDate" value="%{date}"
							   displayFormat="yy-MM-dd" />
						</td>
					</tr>
					<tr align="center">
						<td colspan="2">
							<input type="button" value="保存" name="Save" onclick="suppAction();" />
							<input type="reset"  value="重置" name="Reset" />
							<input type="button" value="返回" name="Back" onclick="history.go(-1);" />
						</td>
					</tr>
				</table>
			</s:form>
		</center>
	</body>
</html>